package alvarodelrosal.chat.client.chataction.remote;

import alvarodelrosal.chat.client.modelo.Connection;
import java.util.ArrayList;
import java.util.List;

public class ChatOkChat implements ChatRemoteAction {

    @Override
    public String getName() {
        return "OkChat";
    }

    @Override
    public void doAction(List<String> parameters) {
        Connection.sendToServer("OkChat<:@:>" + parameters.get(0));
        
    }
    
    public List<String> prepareParameters(int idChat) {
        List<String> parameters = new ArrayList();
        parameters.add(String.valueOf(idChat));
        return parameters;
    }
    
}
